package com.xiangxiao.rpan.storage.constant;

import lombok.AllArgsConstructor;

/**
 * @auther xiangxiao
 * @email 573768011@qq.com
 * @data 2023/7/3 15:38
 */
@AllArgsConstructor
public class GlobalConsts {
  public static final String RPAN_STORAGE = "rpan_storage";

  public static final String STORAGE_LIST = ":storageList";

  public static final String FILE_DATA_KEY = "rpan-file-data";

  public static final String FILE_CHUNK_KEY = "rpan-chunk-file";

  public static final String FILE_LOCK_KEY = "rpan-file-lock";

  public static final String ZFILE_TOKEN_KEY = "Zfile-Token";

  public static final Character PATH_SEPARATOR_CHAR = '/';

  public static final String PATH_SEPARATOR = "/";

  public static final int FILE_SPLIT_SIZE = 1024 * 1024 * 10;

  public static final int FILE_BYTE_TEMP = 1024 * 1024 * 2;

  public static final Long ONE_DAY_LONG = 24L * 60L * 60L * 1000L;

  public static final Long FIVE_MINUTES_LONG = 5L * 60L * 1000L;

  public static final Long ONE_HOUR_LONG = 60L * 60L * 1000L;

  public static final Byte FILE_UPLOAD_FINISH = new Byte("1");

  public static final Byte FILE_UPLOAD_UNFINISHED = new Byte("0");

  public static final Byte FILE_UPLOAD_FAIL = new Byte("2");

}
